<?php
use yii\helpers\Url;
$catname = Yii::$app->params['cat_name'];

$this->title = "文章管理" . Yii::$app->params['blogEtc'];
$catname = Yii::$app->params['cat_name'];
?>
<a href="<?=Url::to(['admin/news','do'=>'create'])?>">新增文章</a>
<ul>
<?php
	foreach ($data as $value) {
?>	
		<li>
			<a href="<?=Url::to(['admin/news','catid'=>$catname[$value['catid']]['slug'],'page'=>1])?>">
				<span class="cat"><?=$catname[$value['catid']]['text']?></span>
			</a>
			<a href="<?=Url::to(['article/content','catid'=>$catname[$value['catid']]['slug'],'slug'=>$value['slug']])?>">
						
				<?=$value['id']?>.<?=$value['title']?>
			</a>
			&nbsp;
			<a href="<?=Url::to(['admin/news','do'=>'edit','id'=>$value['id']])?>">编辑</a>
			&nbsp;
			<a href="<?=Url::to(['admin/news','do'=>'dele','id'=>$value['id']])?>">删除</a>
		</li>
<?php
	}
	echo $pageHtml;
	// echo LinkPager::widget([
 	//    'pagination' => $page,
 	//    'maxButtonCount' => 2,
	// ]);
?>
</ul>